import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'


//引入element-ui
import element from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(element)


//引入axios
import axios from 'axios'
axios.defaults.withCredentials = true;
// axios.defaults.baseURL = 'http://dingrun.xyz:8096/netmarket';
axios.defaults.baseURL = '/api';
Vue.prototype.$axios = axios;



//引入Mock
// import mock from 'mockjs'
// Vue.use(mock);
//加载mock文件
//import './mock/mock'


//事件车通信Bus
import events from './events/event'
Vue.prototype.$emitter = events


//引入echarts
import echarts from 'echarts'
Vue.prototype.$echarts = echarts





Vue.config.productionTip = false
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
